import requests from "./ajax";

// TimeSelector
export const getYears = () => requests.get("/getYears");
export const getAllEmission = () => requests.get("/getAllEmission");

// Map
export const getMap = (param) => requests.get("/getMap", param);
  // Map旁折线图
export const getEmissionLine = (param) => requests.get("/getEmissionLine", param);

// AllProvincePie
export const getAllProvincePie = (param) => requests.get("/getAllProvincePie", param);

// ProvinceLine
export const getProvinceLine = (param) => requests.get("/getProvinceLine", param);

// DepartmentBar
export const getDepartmentBar = (param) => requests.get("/getDepartmentBar", param);

// 获取map地图数据
//export const getMapJson = () => requests.get("/assests/carbon_emission/china.json");



// export const reqGetAllLoginRecords = () => requests.get('/login-record')
// export const reqAddLoginRecord = (loginRecord) => requests.post('/login-record', loginRecord)

// export const reqGetAllPhones = () => requests.get('/phone')
// export const reqGetPhoneById = (id) => requests.get('/phone/' + id)
// export const reqAddPhone = (phone) => requests.post('/phone', phone)
// export const reqDeletePhoneById = (id) => requests.delete('/phone/' + id)
// export const reqUpdatePhoneById = (phone) => requests.put('/phone', phone)
